package com.mvc.security.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;

import com.mvc.framework.model.CompositeKeyAuditableEntity;
@Entity(name="F_ROLE_OPERATION")
@IdClass(RoleOperationPK.class)
public class RoleOperation extends CompositeKeyAuditableEntity {
	@Id
	private Integer roleId;
	@Id
	private Integer operationId;

	public Integer getRoleId() {
    	return roleId;
    }
	public void setRoleId(Integer roleId) {
    	this.roleId = roleId;
    }
	public Integer getOperationId() {
    	return operationId;
    }
	public void setOperationId(Integer operationId) {
    	this.operationId = operationId;
    }
}

class RoleOperationPK implements Serializable {
	private Integer roleId;
	private Integer operationId;

	public Integer getRoleId() {
    	return roleId;
    }
	public void setRoleId(Integer roleId) {
    	this.roleId = roleId;
    }
	public Integer getOperationId() {
    	return operationId;
    }
	public void setOperationId(Integer operationId) {
    	this.operationId = operationId;
    }
}